package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Date 2023/11/15
 * @Author jiaLong
 * @Descript
 */
@Entity
@Table(name = "t_fruit_data")
public class FruitData extends BaseEntity {


    @ApiModelProperty(value = "品种")
    private String variety;


    @ApiModelProperty(value = "价格或者销售数量")
    private String val;

    @ApiModelProperty(value = "单位")
    private String unit;


    @ApiModelProperty(value = "创建时间")
    private String createTime;


    @ApiModelProperty(value = "类型, 1=价格数据, 2=销售数据")
    private String type;



    public FruitData(String variety, String val, String createTime, String type, String unit) {
        this.variety = variety;
        this.val = val;
        this.createTime = createTime;
        this.type = type;
        this.unit = unit;
    }


    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public FruitData() {
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
